<?php
session_start();
$language1="";
if(isset($_SESSION['language1']))
{
$language1=$_SESSION['language1'];
}
include_once 'config.php';

$con = mysql_connect($host, $user, $password);

if (!$con) {
    echo "Sorry Unable to connect with database " . mysql_error();
}

if (!mysql_select_db($dbname)) {
    die("Cannot connect to the Database " . mysql_error($link));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language='JavaScript' type='text/javascript'>
function refreshCaptcha()
{
	var img = document.images['captchaimg'];
	img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>Glossary Management System</title>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"/></script>
		<script type="text/javascript" src="js/custom.js"/></script>
		<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>	
<style>

.table, .td, .th
{
border:1px solid green;


}
th
{
background-color:#006699;
color:white;
}
td
{
padding:8px;
}


.font{font-family:"Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;}
.font_size{font-size:35px; }
.a:link {color:blue; text-decoration:none}    
.a:visited {color:blue; text-decoration:none;} 
.a:hover {color:red; text-decoration:underline;}   
.a:active {color:green; text-decoration:none;} 
a:link {color:blue; text-decoration:none}    
a:visited {color:blue; text-decoration:none;} 
a:hover {color:red; text-decoration:underline;}   
a:active {color:green; text-decoration:none;}   
.style1 {font-size: 36px}
body,td,th {
	font-family:"Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
}
</style>
</head>

<body bgcolor="white">
<img src="6882eea1.png" width="100%" />

<table width='100%' border="0"  align="left" cellpadding="2"  cellspacing="1">

	
			 
              <tr>
                <td colspan="2" bgcolor="#006699">
			      | <a href="home1.php" ><b><font color="white">Home</font></b></a> | <a href="login.php"><b><font color="white">Add Term</font></b></a> | <a href="login.php"><b><font color="white">Suggest Term</font></b></a> | <a href="login.php" ><b><font color="white">New Suggestions</font></b> </a> | <a href="login.php"><b><font color="white">User details</font></b></a> | <a href="login.php"><b><font color="white">Forum</font></b></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Login.php" ><b><font color="white">login</font></b></a> | <a href="register.php"><b><font color="white">Sign up</font></b></a></br>
  </tr>
			     
				
				
     <form method="post">

              

 
 
 <?php

$result=mysql_query("SELECT * FROM language");

            echo "<tr><td  align='left' bgcolor='#869FFF' class='font'>Choose Language: ";

    
				echo "<select style='width:150px' onChange='location.href=this.options[this.selectedIndex].value'>";
				if(language1=="")
				{
				echo "<option value='home1.php'>Select language</option>";
				}
				else
				{
				echo "<option value='tamil1.php?language1=$language1'>$language1</option>";
				}
				   while($row=mysql_fetch_array($result))
{
$value=$row['language'];
echo "<option value='tamil1.php?language1=$value'>$value</option>";
}
				   
                 echo "</select>";
				   echo " </tr>";
				   ?>
 
 
 </form>
 
 
 
 
 
 
 
 
 
 
 
 
<tr>

  <td align="left" bgcolor="#9ACBEF">
  
  <form action="searchforhome1.php" method="post">
    <input type="text" name="key" size="40" value="">
    <input type="submit" name="Search"  value="Search" style="width:120px; height:30px; " /> <br>
    </form></td>

			   
  </tr>
	<?php echo "<tr><td colspan='2' bgcolor='#869FFF'> ";
		       echo "<a href='A' class='a'></a>|<a href='A1.php?letter=A'>A</a>
<a href='B' class='a'></a>|<a href='A1.php?letter=b'>B</a>				
				<a href='C' class='a'></a>|<a href='A1.php?letter=C'>C</a>
		      <a href='D' class='a'></a>|<a href='A1.php?letter=D'>D</a>
			   <a href='E' class='a'></a>|<a href='A1.php?letter=E'>E</a>
			   <a href='F' class='a'></a>|<a href='A1.php?letter=F'>F</a>
			   <a href='G' class='a'></a>|<a href='A1.php?letter=G'>G</a>
			   <a href='H' class='a'></a>|<a href='A1.php?letter=H'>H</a>
			   <a href='I' class='a'></a>|<a href='A1.php?letter=I'>I</a>
			   <a href='J' class='a'></a>|<a href='A1.php?letter=J'>J</a>
			   <a href='K' class='a'></a>|<a href='A1.php?letter=K'>K</a>
			   <a href='L' class='a'></a>|<a href='A1.php?letter=L'>L</a>
			   <a href='M' class='a'></a>|<a href='A1.php?letter=M'>M</a>
			   <a href='N' class='a'></a>|<a href='A1.php?letter=N'>N</a>
			   <a href='O' class='a'></a>|<a href='A1.php?letter=O'>O</a>
			   <a href='P' class='a'></a>|<a href='A1.php?letter=P'>P</a>
			   <a href='Q' class='a'></a>|<a href='A1.php?letter=Q'>Q</a>
			   <a href='R' class='a'></a>|<a href='A1.php?letter=R'>R</a>
			   <a href='S' class='a'></a>|<a href='A1.php?letter=S'>S</a>
			   <a href='T' class='a'></a>|<a href='A1.php?letter=T'>T</a>
			   <a href='U' class='a'></a>|<a href='A1.php?letter=U'>U</a>
			   <a href='V' class='a'></a>|<a href='A1.php?letter=V'>V</a>
			   <a href='W' class='a'></a>|<a href='A1.php?letter=W'>W</a>
			   <a href='X' class='a'></a>|<a href='A1.php?letter=X'>X</a>
			   <a href='Y' class='a'></a>|<a href='A1.php?letter=Y'>Y</a>
			   <a href='Z' class='a'></a>|<a href='A1.php?letter=Z'>Z</a>
			   </tr>		";
?>			   
</table>



